LanguageExt.Core

LanguageExt.Core TypeClasses Eq

Contents

interface Eq <A> Source #

Equality type-class

Parameters

type A

The type for which equality is defined

class TypeClass Source #

Methods

method bool Equals <EQ, A> (this A[] x, A[] y) Source #

where EQ : struct, Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool Equals <EQ, A> (this A? x, A? y) Source #

where EQ : struct, Eq<A>
where A : struct

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool Equals <EQ, A> (this IEnumerable<A> x, IEnumerable<A> y) Source #

where EQ : struct, Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

class TypeClass Source #

Methods

method bool equals <EQ, A> (A x, A y) Source #

where EQ : struct, Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, A> (Option<A> x, Option<A> y) Source #

where EQ : struct, Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, A> (OptionUnsafe<A> x, OptionUnsafe<A> y) Source #

where EQ : struct, Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, L, R> (Either<L, R> x, Either<L, R> y) Source #

where EQ : struct, Eq<R>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, L, R> (EitherUnsafe<L, R> x, EitherUnsafe<L, R> y) Source #

where EQ : struct, Eq<R>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQA, EQB, A, B> (Either<A, B> x, Either<A, B> y) Source #

where EQA : struct, Eq<A>
where EQB : struct, Eq<B>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQA, EQB, A, B> (EitherUnsafe<A, B> x, EitherUnsafe<A, B> y) Source #

where EQA : struct, Eq<A>
where EQB : struct, Eq<B>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, A> (A? x, A? y) Source #

where EQ : struct, Eq<A>
where A : struct

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, A> (Try<A> x, Try<A> y) Source #

where EQ : struct, Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, A> (TryOption<A> x, TryOption<A> y) Source #

where EQ : struct, Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, A> (Lst<A> x, Lst<A> y) Source #

where EQ : struct, Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, A> (HashSet<A> x, HashSet<A> y) Source #

where EQ : struct, Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, A> (Que<A> x, Que<A> y) Source #

where EQ : struct, Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, A> (Set<A> x, Set<A> y) Source #

where EQ : struct, Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, A> (Arr<A> x, Arr<A> y) Source #

where EQ : struct, Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, A> (A[] x, A[] y) Source #

where EQ : struct, Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, A> (IEnumerable<A> x, IEnumerable<A> y) Source #

where EQ : struct, Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <EQ, A> (Seq<A> x, Seq<A> y) Source #

where EQ : struct, Eq<A>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal

method bool equals <NEWTYPE, EQ, A, PRED> (NewType<NEWTYPE, A, PRED> x, NewType<NEWTYPE, A, PRED> y) Source #

where EQ : struct, Eq<A>
where PRED : struct, Pred<A>
where NEWTYPE : NewType<NEWTYPE, A, PRED>

Structural equality test

Parameters

param x

The left hand side of the equality operation

param y

The right hand side of the equality operation

returns

True if x and y are equal